package com.dhl.builder.builfrthouse02;

/**
 * @title: HouseDirector
 * @Author danghailiang
 * @Date: 2022/7/31 10:41
 * @Version 1.0
 */
public class HouseDirector {
    private Builder builder;
    public HouseDirector(Builder builder){
       this.builder = builder;
    }

    public Product construcHouse(){
        builder.buildBisicA();
        builder.buildWallsB();
        builder.roofedC();
        return builder.getResult();
    }

}
